package com.yz.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yz.entity.Section;
import com.yz.mapper.SectionMapper;
import com.yz.service.SectionService;

/**
 * 科室表实现类
 * @author 于万伟
 *
 */
@Service
public class SectionServiceImpl implements SectionService{
	@Autowired
	SectionMapper sectionMapper;

	@Override
	public List<Section> getSec(Section sectionDto) {
		return sectionMapper.getSec(sectionDto);
	}

	@Override
	public boolean addSec(Section section) {
		return sectionMapper.addSec(section);
	}

	@Override
	public boolean updateSec(Section section) {
		return sectionMapper.updateSec(section);
	}

	@Override
	public boolean delSec(int seid) {
		return sectionMapper.delSec(seid);
	}
}
